﻿<Window x:Class="Convertor.TestPlugin"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Convertor.Code"
        Title="TestPlugin" Height="300" Width="300" Loaded="Window_Loaded_1">
    <Window.Resources>
        <local:ConvertorUIConvert x:Key="ConvertorUIConvert"></local:ConvertorUIConvert>
        <local:ConvertorUI x:Key="ConvertorUI"></local:ConvertorUI>
    </Window.Resources>
    <Grid DataContext="{Binding Source={StaticResource ConvertorUI}}">
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <DockPanel Grid.Row="0">
            <Grid >
                <Grid.RowDefinitions>
                    <RowDefinition Height="45*"/>
                    <RowDefinition Height="18"/>
                    <RowDefinition Height="45*"/>
                </Grid.RowDefinitions>
                <TextBox  Name="tbInput" Margin="0,5,0,0" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Grid.Row="0" />
                <TextBox  Name="tbOutput" Margin="0,5,0,0" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Grid.Row="2" />
                <TextBlock Text="▼" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            </Grid>
        </DockPanel>
        <Button Content="测试" HorizontalAlignment="Right" VerticalAlignment="Top" Width="75" Grid.Row="1" Margin="3" Click="Button_Click_1"/>
    </Grid>
</Window>
